<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Cli</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Cli</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Controller for CLI requests.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Andrej Jursa</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_controllers---cli.php.html">/controllers/cli.php</a> (line <span class="field"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a8">8</a></span>)
		</p>
		
				
		<pre>CI_Controller
   |
   --Cli</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																				
												<div class="method-definition">
											<span class="method-result">Cli</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#apply_lockdown" title="details" class="method-name">apply_lockdown</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#clear_lockdown" title="details" class="method-name">clear_lockdown</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#generate_encryption_key" title="details" class="method-name">generate_encryption_key</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#index" title="details" class="method-name">index</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#lamsfet_import" title="details" class="method-name">lamsfet_import</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#new_teacher" title="details" class="method-name">new_teacher</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#update_database" title="details" class="method-name">update_database</a>
											([<span class="var-type">integer|null</span>&nbsp;<span class="var-name">$migration</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#_clear_production_cache" title="details" class="method-name">_clear_production_cache</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#_get_cli_user_input" title="details" class="method-name">_get_cli_user_input</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$msg</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a10">10</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Cli</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodapply_lockdown" id="apply_lockdown"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">apply_lockdown</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a216">216</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Apply new lockdown.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			apply_lockdown
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodclear_lockdown" id="clear_lockdown"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">clear_lockdown</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a195">195</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Release system lockdown.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			clear_lockdown
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgenerate_encryption_key" id="generate_encryption_key"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">generate_encryption_key</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a226">226</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Generate new encryption key.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			generate_encryption_key
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodindex" id="index"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">index</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a18">18</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			index
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodlamsfet_import" id="lamsfet_import"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">lamsfet_import</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a125">125</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Import LaMSfET data into this LIST installation.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			lamsfet_import
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodnew_teacher" id="new_teacher"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">new_teacher</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a70">70</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creates new teacher from console.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			new_teacher
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodupdate_database" id="update_database"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">update_database</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a34">34</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Performs an migration update from console.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			update_database
		</span>
					([<span class="var-type">integer|null</span>&nbsp;<span class="var-name">$migration</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|null</span>
				<span class="var-name">$migration</span><span class="var-description">: migration number or null to update to the latest migration.</span>			</li>
				</ul>
		
			
	</div>
<a name="method_clear_production_cache" id="_clear_production_cache"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_clear_production_cache</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a256">256</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Clear production cache for DataMapper if it is enabled.</p>
	<ul class="tags">
				<li><span class="field">return:</span> number of deleted cache files.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			_clear_production_cache
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method_get_cli_user_input" id="_get_cli_user_input"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_get_cli_user_input</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_CLI_Controllers__controllerscli.php.html#a277">277</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Displays standard input prompt with message and return answer.</p>
	<ul class="tags">
				<li><span class="field">return:</span> answer.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_get_cli_user_input
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$msg</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$msg</span><span class="var-description">: message.</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 13 Sep 2013 12:32:31 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>